package edu.tyut.ncp.service;

import edu.tyut.ncp.entity.Purchase;
import edu.tyut.ncp.entity.SellPurchase;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public interface PurchaseService {
    void add(Purchase purchase);

    List<Purchase> selectBuys(String username);
    Purchase selectNewPurchaseId(String ownName);
    List<SellPurchase> selectByName();
}
